package controller;

import java.util.ArrayList;

import file.io.FileWrite;
import model.Aggregation;
import model.Association;
import model.ClassObj;
import model.DomainModel;
import model.Inheritance;

public class GenerateDomainModelController {
	
	DomainModel domainModel;

	public GenerateDomainModelController(DomainModel dm) {
		domainModel = dm;
	}
	
	//move this to generate domainmodel controller
	public void generateModel() {
		ArrayList<ClassObj> classList = domainModel.getClassModelconceptList();
		ArrayList<Inheritance> inheritanceList = domainModel.getInheritanceModelconceptList();
		ArrayList<Association> associationList = domainModel.getAssociationModelconceptList();
		ArrayList<Aggregation> aggregationList = domainModel.getAggregationModelconceptList();
		
		FileWrite fwr = new FileWrite();
		
		fwr.writeClassAttribute(classList);
		fwr.writeRelation(inheritanceList, associationList,aggregationList);
	}
}
